﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmailManagementSoftware.Model
{
    public class EmailMessage
    {
        public EmailMessage()
        {
            this._EmailAttachements = new List<EmailAttachement>();
        }

        public int _idEmailMessage { get; set; }
        public int _idUser { get; set; }
        public string _emailSubject { get; set; }
        public string _recipient { get; set; }
        public string _emailBody { get; set; }

        public virtual IList<EmailAttachement> _EmailAttachements { get; set; }
        public virtual User _User { get; set; }


        public override string ToString()
        {
            return _emailSubject;
        }
    }
}
